home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / examples / addressbook / mainwindow.h.z / mainwindow.h
Encoding:
C/C++ Source or Header  |  2002-04-08  |  1.0 KB  |  51 lines

  1. /****************************************************************************
  2. ** $Id:  qt/mainwindow.h   3.0.3   edited Oct 12 12:18 $
  3. **
  4. ** Copyright ( C ) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef AB_MAINWINDOW_H
  12. #define AB_MAINWINDOW_H
  13.  
  14. #include <qmainwindow.h>
  15. #include <qstring.h>
  16.  
  17. class QToolBar;
  18. class QPopupMenu;
  19. class ABCentralWidget;
  20.  
  21. class ABMainWindow: public QMainWindow
  22. {
  23.     Q_OBJECT
  24.  
  25. public:
  26.     ABMainWindow();
  27.     ~ABMainWindow();
  28.  
  29. protected slots:
  30.     void fileNew();
  31.     void fileOpen();
  32.     void fileSave();
  33.     void fileSaveAs();
  34.     void filePrint();
  35.     void closeWindow();
  36.  
  37. protected:
  38.     void setupMenuBar();
  39.     void setupFileTools();
  40.     void setupStatusBar();
  41.     void setupCentralWidget();
  42.  
  43.     QToolBar *fileTools;
  44.     QString filename;
  45.     ABCentralWidget *view;
  46.  
  47. };
  48.  
  49.  
  50. #endif
  51.